package com.itheima.d04;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        System.out.println("请输入年纪：");
        Scanner age = new Scanner(System.in);
        String age1 = age.next();
        int age2= Integer.parseInt(age1);
        age2=age2+1;
        System.out.println(age2);
    }
}
